from django.conf.urls.defaults import *
from test_app.models import Message
from django.views.generic import list_detail
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
     (r'^admin/(.*)', admin.site.root),
     (r'^comments/', include('custom_comments.urls')),
     ('^messages/$', list_detail.object_list, dict(queryset=Message.objects.all())),
     ('^messages/(?P<object_id>\d+)/$', list_detail.object_detail, dict(queryset=Message.objects.all())),
)
